/***API***/
import * as baseAPI from "@/api";
import qs from "qs";
const request = baseAPI.request;

const API = {
  getList: obj => {
    let requestData = {
      method: "post",
      url: "YWDev/yy-dictionary-manage2",
      data: obj
    };
    return request(requestData);
  },

  editSubmit: obj => {
    let requestData = {
      method: "post",
      url: "/YWCK/UpdateYWCKSupplier2",
      data: obj
    };
    return request(requestData);
  },

  addSubmit: obj => {
    let requestData = {
      method: "post",
      url: "YWCK/AddYWCKSupplier2",
      data: obj
    };
    return request(requestData);
  },

  delete: obj => {
    let requestData = {
      method: "post",
      url: "YWCK/DelYWCKSupplier2",
      data: obj
    };
    return request(requestData);
  },

  saveOutInList() {
    let requestData = {
      method: "post",
      url: "YWCK/ywCKAddOutStorage2",
      data: obj
    };
    return request(requestData);
  }
};

export default API;
